package com.moonlit.myspring;

import org.springframework.stereotype.Component;

@Component("halberd")
public class Halberd implements Weapon{


    @Override
    public void attack() {
        System.out.println("这是另一把武器");
    }
}
